package com.example;

import java.util.ArrayList;
import java.util.List;

public class User {

    private String id;

    private String name;

    private List<Adddress> adddresses = new ArrayList<Adddress>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Adddress> getAdddresses() {
        return adddresses;
    }

    public void setAdddresses(List<Adddress> adddresses) {
        this.adddresses = adddresses;
    }

    public User() {
    }

    public User(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public User(String id, String name, List<Adddress> adddresses) {
        this.id = id;
        this.name = name;
        this.adddresses = adddresses;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", adddresses=" + adddresses +
                '}';
    }
}
